import BusinessConstant from '@/constant/BusinessConstant';
import IndexConstant from '@/constant/Index';

export default class ImageConstant {
  /**
   * 图片服务器根路径
   */
  static SERVER_ROOT = `${ IndexConstant.PROTOCOL }://${ IndexConstant.SERVER_IP }:10000/static`;
  /**
   * 上传房东头像路径
   */
  static UPLOAD_LANDLORD_HEAD_IMG = `${ BusinessConstant.ROOT_SERVER }/landlord/headImg`;
  /**
   * 上传租客头像路径
   */
  static UPLOAD_TENANT_HEAD_IMG = `${ BusinessConstant.ROOT_SERVER }/tenant/headImg`;
  /**
   * 图片/视频上传地址
   */
  static UPLOAD_IMG_VIDEO = `${ BusinessConstant.ROOT_SERVER }/medium`;
  /**
   * 聊天图片、视频上传的地址
   */
  static CHAT_UPLOAD = `${ BusinessConstant.ROOT_SERVER }/medium/chat`
  /**
   * 默认图片
   */
  static DEFAULT_IMG = '/common/male.png';
  /**
   * 默认视频封面
   */
  static DEFAULT_VIDEO_COVER_IMG = '/common/video.png';
  /**
   * logo
   */
  static LOGO = `${ this.SERVER_ROOT }/common/logo.png`;
}